package com.igeek.ch01;

import org.springframework.stereotype.Component;

/**
 * @package com.igeek.ch01
 * @Description
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/11/15 13:57
 */
@Component("count")
public class CountImpl implements ICount{
    @Override
    public int add(int i, int j) {
        System.out.println("核心业务 add()");
        return i+j;
    }

    @Override
    public int sub(int i, int j) {
        System.out.println("核心业务 sub()");
        return i-j;
    }

    @Override
    public int mul(int i, int j) {
        System.out.println("核心业务 mul()");
        return i*j;
    }

    @Override
    public int div(int i, int j) {
        System.out.println("核心业务 div()");
        return i/j;
    }
}
